import { createRouter, createWebHistory } from "vue-router"

import LoginView from '../views/LoginView.vue'
import HomeView from '../views/HomeView.vue'
import AdminsView from '../views/AdminsView.vue'
import MapAdminsView from '../views/MapAdminsView.vue'
import UsersView from '../views/UsersView.vue'
import ParkMapView from '../views/ParkMapView.vue'
import ParkListView from '../views/ParkListView.vue'
import UserFeedBackView from '../views/UserFeedBackView.vue'
import UserSuggestParkView from '../views/UserSuggestParkView.vue'
import ParkSatelliteMapView from '../views/ParkSatelliteMapView.vue'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            redirect: '/login',
        },
        {
            path: '/login',
            component: LoginView,
        },
        {
            path: '/home',
            component: HomeView,
        },
        {
            path: '/admins',
            component: AdminsView,
        },
        {
            path: '/mapadmins',
            component: MapAdminsView,
        },
        {
            path: '/users',
            component: UsersView,
        },
        {
            path: '/park/map',
            component: ParkMapView
        },
        {
            path: '/park/list',
            component: ParkListView,
        },
        {
            path: '/park/satellite',
            component: ParkSatelliteMapView,
        },
        {
            path: '/feedback',
            component: UserFeedBackView
        },
        {
            path: '/feedback/park-suggest',
            component: UserSuggestParkView
        }
    ]
})

export default router